import http from '@/utils/http.js'

/**
 * 新增/编辑课程信息
 * @param data
 * @returns {AxiosPromise}
 */
export function pullTodayAntiForgetList() {
    return http.post('/antiForget/todayAntiForgetList')
}

/**
 * 删除抗遗忘数据
 * @param params
 * @returns {AxiosPromise}
 */
export function deleteAntiForget(params) {
    return http.post('/antiForget/delAntiForgetList', {}, {params})
}

/**
 * 提交抗遗忘数据
 * @returns {*}
 */
export function antiForgetListPush(params, data) {
    return http.post('/antiForget/antiForgetListPush', data, {params})
}

/**
 * 通知服务器开始抗遗忘时间
 * @param params
 * @returns {*}
 */
export function startAntiForget(params) {
    return http.post('/antiForget/startAntiForget', {}, {params})
}

/**
 * 获取抗遗忘的反馈
 * @param params
 * @returns {AxiosPromise}
 */
export function getAntiForgetAfter(params) {
    return http.post('/antiForget/antiForgetAfter', {}, {params})
}

/**
 * 更新抗遗忘的反馈
 * @param params
 * @returns {AxiosPromise}
 */
export function updateAntiForgetAfter(data) {
    return http.post('/antiForget/updateAntiForgetAfter', data)
}
